-- GENERATED SPELL FOR [Blackrock Warlock] --


function spell0_7028(pUnit, Event) --@Curse of Tongues,n/a--
pUnit:FullCastSpellOnTarget(13338,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7028', 15285, 1)
end

function spell1_7028(pUnit, Event) --@Immolate,n/a--
pUnit:FullCastSpellOnTarget(20826,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7028', 23000, 1)
end

function spell2_7028(pUnit, Event) --@Shadow Bolt,n/a--
pUnit:FullCastSpellOnTarget(20825,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7028', 3000, 1)
end

function Sorts_7028(pUnit, Event)
local choix_sorts_7028 = math.random(0, 2)
if choix_sorts_7028 == 0 then
pUnit:RegisterEvent('spell0_7028', 1, 1)
end
if choix_sorts_7028 == 1 then
pUnit:RegisterEvent('spell1_7028', 1, 1)
end
if choix_sorts_7028 == 2 then
pUnit:RegisterEvent('spell2_7028', 1, 1)
end
end

function mob7028_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_7028', math.random(1500, 3000), 1)
end

function mob7028_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7028_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7028_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(7028, 1, 'mob7028_Action')
RegisterUnitEvent(7028, 2, 'mob7028_Leave')
RegisterUnitEvent(7028, 3, 'mob7028_Kill')
RegisterUnitEvent(7028, 4, 'mob7028_Die')
